package com.justech.eat.service.event;

import com.justech.eat.model.SettlementResult;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * @program: eat-service
 * @description: 报餐终结事件
 * @author: feifei.li
 * @create: 2020-06-08 19:38
 **/
@Getter
@Setter
public class OrderDetailFinalEvent extends ApplicationEvent {

    private int result;

    private String jobNumber;

    private int type;

    private String date;

    private List<SettlementResult> settlementResults;


    public OrderDetailFinalEvent(Object source) {
        super(source);
    }

    public OrderDetailFinalEvent(Object source, String jobNumber, String date, int type, int result) {
        super(source);
        this.result = result;
        this.type = type;
        this.jobNumber = jobNumber;
        this.date = date;
    }

    public OrderDetailFinalEvent(Object source, List<SettlementResult> settlementResults) {
        super(source);
        this.settlementResults = settlementResults;
    }
}
